package g11.model;

import java.io.Serializable;
import java.util.Set;

public class Drug implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6621631560404524915L;

	private int drugId;
	private String drugName;
	private byte type;
	private Set<Prescription> prescriptionSet;

	public int getDrugId() {
		return drugId;
	}

	public void setDrugId(int drugId) {
		this.drugId = drugId;
	}

	public String getDrugName() {
		return drugName;
	}

	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public Set<Prescription> getPrescriptionSet() {
		return prescriptionSet;
	}

	public void setPrescriptionSet(Set<Prescription> prescriptionSet) {
		this.prescriptionSet = prescriptionSet;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public boolean equals(Object obj) {
		/*
		 * add by Fern
		 */
		Drug other = (Drug) obj;
		if (this.drugId == other.drugId) {
			return true;
		} else

			return false;
	}
}
